package com.example.shuimu;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;

public class LunchActivity extends AppCompatActivity {
    EditText mima;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        getSupportActionBar().hide();
        //全屏
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lunch);
        mima = findViewById(R.id.mima);
    }

    public void jiangdi(View view) {
        String mimas = mima.getEditableText().toString().trim();
        if(mimas.equals("123")){

            finish();
            startActivity(new Intent(this,MainActivity.class));
        }
    }
}